<html>
<head><meta charset="utf-8"><title>Newlines in suggestions · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Newlines.20in.20suggestions.html">Newlines in suggestions</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="195945554"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Newlines%20in%20suggestions/near/195945554" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Newlines.20in.20suggestions.html#195945554">(May 01 2020 at 09:47)</a>:</h4>
<p>Is it possible to have newlines in suggestions? I want to suggest to introduce a new variable, then use it. Is that possible?</p>



<a name="195980776"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Newlines%20in%20suggestions/near/195980776" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Newlines.20in.20suggestions.html#195980776">(May 01 2020 at 16:46)</a>:</h4>
<p>I... I would not try to do that I think -- what for? You'd also need to indent it and such, so it seems pretty hard.</p>



<a name="196006156"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Newlines%20in%20suggestions/near/196006156" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Newlines.20in.20suggestions.html#196006156">(May 01 2020 at 20:29)</a>:</h4>
<p>Cc <span class="user-mention" data-user-id="119031">@Esteban Küber</span> If you have some time for me <span aria-label="slight smile" class="emoji emoji-1f642" role="img" title="slight smile">:slight_smile:</span></p>



<a name="196020516"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Newlines%20in%20suggestions/near/196020516" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Esteban Küber <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Newlines.20in.20suggestions.html#196020516">(May 01 2020 at 23:21)</a>:</h4>
<p>It works,but getting the indentation is tricky</p>



<a name="196020532"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Newlines%20in%20suggestions/near/196020532" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Esteban Küber <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Newlines.20in.20suggestions.html#196020532">(May 01 2020 at 23:21)</a>:</h4>
<p>There's a method to get a source line indent though sonewhere</p>



<a name="196020539"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Newlines%20in%20suggestions/near/196020539" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Esteban Küber <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Newlines.20in.20suggestions.html#196020539">(May 01 2020 at 23:21)</a>:</h4>
<p>But it works</p>



<a name="196020592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Newlines%20in%20suggestions/near/196020592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Esteban Küber <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Newlines.20in.20suggestions.html#196020592">(May 01 2020 at 23:22)</a>:</h4>
<p>It will just show it in a subwindow instead of a label</p>



<a name="196020601"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Newlines%20in%20suggestions/near/196020601" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Esteban Küber <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Newlines.20in.20suggestions.html#196020601">(May 01 2020 at 23:22)</a>:</h4>
<p><span class="user-mention" data-user-id="255061">@LeSeulArtichaut</span> ^^</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>